using System.Collections.Generic;
using UnityEngine;

namespace PKGames.Analytics
{
	public class FasterLoggerEditor : IAnalyticsLogger
	{
		public void LogEvent(string eventId, int eventRevision)
		{
			UnityEngine.Debug.Log("[FasterLoggerEditor] Event: " + eventId);
			UnityEngine.Debug.Log("[FasterLoggerEditor] Revision: " + eventRevision);
		}

		public void LogEvent(string eventId, Dictionary<string, UnityEncodedPrimitiveData> parameters, int eventRevision)
		{
			UnityEngine.Debug.Log("[FasterLoggerEditor] Event: " + eventId);
			string text = string.Empty;
			foreach (KeyValuePair<string, UnityEncodedPrimitiveData> parameter in parameters)
			{
				text = text + parameter.Key + ": " + parameter.Value.Data + "\n";
			}
			UnityEngine.Debug.Log("[FasterLoggerEditor] Parameters:\n" + text);
			UnityEngine.Debug.Log("[FasterLoggerEditor] Revision: " + eventRevision);
		}
	}
}
